package com.hjw.junit;

import com.hjw.exer.CreditCard;
import com.hjw.exer.GiantPanda;
import com.hjw.exer.Teacher;

/**
 * 用于测试Teacher、GianatPanda、CreditCard类
 * @author hjwStrart
 * @create 2022-01-11 11:05
 */
public class TestTeacherPandaCredit {
    public static void main(String[] args) {
        Teacher teacher = new Teacher("薛老师","男",18);
        System.out.println(teacher.toString());
        GiantPanda giantPanda = new GiantPanda();
        System.out.println(giantPanda);
        CreditCard creditCard = new CreditCard();
        System.out.println("默认信用卡信息：\n"+creditCard.toString());
        CreditCard creditCard1 = new CreditCard("666666");
        System.out.println("自定义信用卡信息：\n"+creditCard1);
    }
}
